﻿using FitnessCenter.Common;
using FitnessCenter.DashboardModule.Views;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;

namespace FitnessCenter.DashboardModule
{
    public class DashboardModule : IModule
    {
        private readonly IRegionViewRegistry _regionViewRegistry;

        public DashboardModule(IRegionViewRegistry regionViewRegistry)
        {
            _regionViewRegistry = regionViewRegistry;
        }

        public void Initialize()
        {
            _regionViewRegistry.RegisterViewWithRegion(ModuleNames.DashboardModule, typeof(DashboardView));
        }
    }
}
